package mobi.weq.util.edinburgh;

public class GridConfig {
	public static final double smallestGridSize = 0.0001;
	public static final double smallestGridSizeInMetre = 11.119492664455874;
	public static final int maxZoom = 21;

	public static GridConfig getInstance(int zoom) {
		return new GridConfig(smallestGridSize * Math.pow(2, maxZoom - zoom),
				smallestGridSizeInMetre * Math.pow(2, maxZoom - zoom), zoom);
	}

	public GridConfig(double size, double sizeInMetre, int zoom) {
		this.size = size;
		this.sizeInMetre = sizeInMetre;
		this.zoom = zoom;
	}

	double size;
	double sizeInMetre;
	double zoom;

}
